package controllers;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

import lib.Subject;

public class DeliverableController
	extends ControllerAbstract 
{
	public DeliverableController()
	{
		registerController();
	}
	public void seralize_Project()
	{
		String filename = "deliverable.ser"; 
		try 
		{
			FileOutputStream fos = new FileOutputStream(filename);
			ObjectOutputStream out = new ObjectOutputStream(fos);
			//out.writeObject(obj);
			out.close();
			
			FileInputStream fis = new FileInputStream(filename);
			ObjectInputStream in = new ObjectInputStream(fis);	
			
			//ObjToSer obj2 = (ObjToSer) in.readObject();
			//obj2.I_have_you();
			in.close();
		}
		catch(IOException ex) 
		{
			ex.printStackTrace();
		} 
	}

	@Override
	public String getShortName() {
		return "DeliverableController";
	}
	@Override
	public void update(Subject o) {
		// TODO Auto-generated method stub
		
	}
}
